import request from '@/utils/request'

// 查询手术记录表列表
export function listSurgical(query) {
  return request({
    url: '/hospital/surgical/list',
    method: 'get',
    params: query
  })
}

// 查询手术记录表详细
export function getSurgical(surgicalId) {
  return request({
    url: '/hospital/surgical/' + surgicalId,
    method: 'get'
  })
}

// 新增手术记录表
export function addSurgical(data) {
  return request({
    url: '/hospital/surgical',
    method: 'post',
    data: data
  })
}

// 修改手术记录表
export function updateSurgical(data) {
  return request({
    url: '/hospital/surgical',
    method: 'put',
    data: data
  })
}

// 删除手术记录表
export function delSurgical(surgicalId) {
  return request({
    url: '/hospital/surgical/' + surgicalId,
    method: 'delete'
  })
}
